<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let obj = {
      es5: function() {
        document.write('这是es5的函数');
      },
      es6() {
        document.write('这是es6更新后的函数');
      },
      es6: () => {
        document.write('箭头函数');
      }
    }
    obj.es5();
    obj.es6();
  </script>
</body>
</html>